Arrow keys / Click to navigate

Building a Web Application on AWS

Module 2: Application Architecture & AWS Services

What are we going to build? And which services will we use?

Module Objectives

By the end of this module, you will be able to:

What You'll Build

🌐

Web Application

Fully functional

🔐

User Authentication

Sign-up / Sign-in

📝

CRUD Operations

Create, Read, Update, Delete

☁️

100% Cloud-Native

Entirely on AWS

🔬

Microservices

Loosely coupled

Application Architecture

User(Browser/App) Amazon S3Static Hosting CognitoUser Pools API GatewayREST API AWS LambdaBusiness Logic DynamoDBNoSQL DB Amazon S3File Storage CloudWatchLogs X-RayTracing HTTPS Request Invoke CRUD Files

Developer Tools

The tools you'll use to interact with AWS programmatically:

⌨️

AWS CLI

Command-line interface for scripting & automation

📦

AWS SDKs

boto3 (Python), AWS SDK for Java, .NET SDK

☁️

Cloud9 / IDE

Browser-based IDE or local VS Code

🛠️

SAM / CDK

Infrastructure as Code frameworks

Amazon S3 — Storage & Hosting

Amazon S3 Object Storage 99.999999999% durability Unlimited scale Frontend Hosting HTML, CSS, JavaScript User File Uploads Images, documents, media Static Assets CDN-distributed Presigned URLs Secure, time-limited access

Amazon DynamoDB — Managing Data

DynamoDB Table PK: user_001Note: "Meeting at 3pm" PK: user_001Note: "Buy groceries" PK: user_002Note: "Deploy v2.0" PK: user_003Note: "Review PR #42" ⚡ Serverless 📈 Auto-scaling 🔑 Key-Value + Document

AWS Lambda — Processing Logic

API Gateway S3 Events DynamoDB Streams CloudWatch Events AWS Lambda Your Code Runs Here Python | Java | .NET Pay per invocation DynamoDB (Write) S3 (Store files) SNS (Notify)

Amazon API Gateway — Connecting It All

Client HTTP Request API Gateway GET /notes POST /notes PUT /notes/{id} DELETE /notes/{id} + Auth + Throttling + CORS λ listNotes λ createNote λ updateNote λ deleteNote DynamoDB

Amazon Cognito — User Access

Cognito User Pools "Who are you?" ✅ Sign-up 🔑 Sign-in 🎫 JWT Tokens MFA Support Social Login Cognito Identity Pools "What can you do?" 🔐 Temp AWS Creds 📋 IAM Role Mapping 🌐 Federation Token

Knowledge Check

1. Which service provides serverless NoSQL database storage?

2. What is the primary role of Amazon API Gateway?

Module 2 Summary

Amazon S3

Frontend hosting + file storage

DynamoDB

NoSQL data storage

Lambda

Serverless compute

API Gateway

REST API front door

Cognito

Authentication & authorization

CloudWatch

Monitoring & observability

Next: Module 3 — Getting Started with Development (SDK setup + Lab 1)